package com.tanhua.app.controller;

import com.tanhua.app.Service.HuanXinService;
import com.tanhua.model.vo.HuanXinUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/huanxin")
public class HuanXinController {
@Autowired
private HuanXinService huanXinService;
    //  GET/huanxin/user
    // 查询当前用户的环信信息
    @GetMapping("/user")
    public ResponseEntity findHuanxin(){
      HuanXinUserVo vo=  huanXinService.findHuanxin();
      return ResponseEntity.ok(vo);
    }
}
